<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>测试markdown 转换器</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<link rel="stylesheet" href="css/bootstrap.css" />
		<link rel="stylesheet" href="css/github.css" />
		<link rel="stylesheet" href="css/showdown.css" />
	</head>
	<body>
		<div id="preview"></div>
		<script type="text/javascript" src="js/showdown.js"></script>
		<script type="text/javascript" src="js/showdown-toc.js"></script>
		<script type="text/javascript" src="js/jquery-2.2.3.js"></script>
		<script>
			$(function() {
				$.ajax({
					url: "docs/demo.md",
					success: function(data) {
						var converter = new showdown.Converter({
							extensions: ['toc'],
							'tasklists': true,
							'tables': true
						});
						$("#preview").html(converter.makeHtml(data));
					}
				});
				//hljs.initHighlighting();
			});
		</script>
	</body>

</html>